package com.qdlc.p2p.dal.dao.impl;

import java.util.List;

import javax.persistence.Query;

import org.springframework.stereotype.Repository;

import com.qdlc.p2p.dal.common.dao.jpa.BaseDaoImpl;
import com.qdlc.p2p.dal.dao.TppSinaSplitDao;
import com.qdlc.p2p.dal.dto.TppSinaSplit;

/**
 * 
 * 新浪分账信息
 * @author zlhx
 * @version 2.0
 * @date 2015年8月21日 下午2:35:13
 */
@Repository("tppSinaSplitDao")
public class TppSinaSplitDaoImpl extends BaseDaoImpl<TppSinaSplit> implements
		TppSinaSplitDao {

	@SuppressWarnings("unchecked")
	@Override
	public List<TppSinaSplit> findList(String orderNo) {
		String jpql = " from TppSinaSplit where orderNo = ?1";
		Query query = em.createQuery(jpql);
		query.setParameter(1, orderNo);
		List<TppSinaSplit> list = query.getResultList();
		return list;
	}
}
